import subprocess
import sys

# 第三方库名
packages = [
    "numpy", "pandas", "matplotlib", "seaborn", "scipy", "scikit-learn", "plotly"
]

# 使用清华源
for package in packages:
    subprocess.check_call([sys.executable, "-m", "pip", "install", "-i", "https://pypi.tuna.tsinghua.edu.cn/simple", package])
